package com.syh.creditsservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syh.bscommon.pojo.Transactions;
import com.syh.creditsservice.pojo.CarbonCredits;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author syh
 * @since 2024-07-02
 */
public interface ICarbonCreditsService extends IService<CarbonCredits> {

    BigDecimal getCreditAmount(Integer companyId);

    BigDecimal getAccount(Integer companyId);

    void updateAccount(CarbonCredits carbonCredits);

    void updateCreditAmount(Integer companyId, BigDecimal emissionAmount);

    void updateCreditAmountAdd(Integer companyId, BigDecimal emissionAmount);

    void updateAccount_a(Transactions transactions);

    void updateAccount_s(Transactions transactions);

    void updateAccount_add_buy(Transactions transactions);

    void updateAccount_add_sell(Transactions transactions);
}
